package net.linku.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.linku.model.BaseDTO;

import java.util.Date;

/**
 * 后台账户和角色关系表
 */
@ApiModel(description = "后台账户和角色关系表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "l_a_account_role")
public class LAAccountRole extends BaseDTO<LAAccountRole> {
    /**
     * 角色id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "角色id")
    private Long id;

    /**
     * 租户ID, 值集 0 是大众租户 1是后端集团租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(value = "租户ID, 值集 0 是大众租户 1是后端集团租户")
    private Long tenantId;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    /**
     * 账户ID
     */
    @TableField(value = "account_id")
    @ApiModelProperty(value = "账户ID")
    private Long accountId;
}